This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal


Sep 16, 2015, 4:17 PM
26 Posts

Reading notes.ini Variables with NotesSession.GetEnvironmentString

  • Category: Domino Designer
  • Platform: Windows
  • Release: 9.0.1
  • Role: Developer
  • Tags:
  • Replies: 2

Hi,

 

I have a piece of code in a shared action placed in a folder.

There is a simple commandline which is puzzeling me:

oima = sess.GetEnvironmentString("OriginalInternetMailAddress", False)

I click the button and the notes.ini variable is correctly read.

Then I edit the notes.ini and delete that variable from it.

Then I klick the button again and it still shows me the value that it had before!

Even leaving and reopening the database doesn't help.

I assume the NotesSession is cached anywhere. Is there any way to refresh that cache?

Best Regards

Ron

Sep 16, 2015, 5:28 PM
328 Posts
Close and reopen the client

Why are you manually deleting while the client is running?

If you use your agent to Call notesSession.SetEnvironmentVar( name$, valueV [, issystemvar ] ) it should update the cache immediately as well as update the value in Notes.ini.

I seem to recall that if you set valueV to Null ("") - the environment variable is deleted from notes.ini

 

 

Sep 17, 2015, 8:16 AM
26 Posts
I'm much more interested in identifying and manipulating the cache

Hi Mark,

thanks for your reply.

I was testing and debugging some new code. Normally the notes.ini.variable would be deleted by the code itself.

I'm sure it will work normally today after closing and reopening the client. But I find it much more interesting to get some answers around Notes caching.

Where is that cache located?

Is it possible to manipulate that cache?

Is it possible to prohibit some parameters from caching, similar to "NoCache" in @dbLookup?


This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal